import request from '@/utils/request';

// 获取项目维度工时报表统计列表
export function apiProjectStatList(query) {
  return request({
    url: '/work_hour/stat/projectStatList',
    method: 'get',
    params: query
  });
}

// 获取销售维度工时报表统计列表
export function apiSaleStatList(query) {
  return request({
    url: '/work_hour/stat/saleStatList',
    method: 'get',
    params: query
  });
}

// 获取个人维度工时报表统计列表
export function apiUserStatList(query) {
  return request({
    url: '/work_hour/stat/userStatList',
    method: 'get',
    params: query
  });
}

// 获取项目维度工时报表统计列表
export function apiWorkHourStatList(query) {
  return request({
    url: '/work_hour/stat/workHourStatList',
    method: 'get',
    params: query
  });
}

// 导出

export function apiExportProjectStatList(query) {
  return request({
    url: '/work_hour/stat/exportProjectStatList',
    method: 'get',
    params: query
  });
}

export function apiExportSaleStatList(query) {
  return request({
    url: '/work_hour/stat/exportSaleStatList',
    method: 'get',
    params: query
  });
}

export function apiExportUserStatList(query) {
  return request({
    url: '/work_hour/stat/exportUserStatList',
    method: 'get',
    params: query
  });
}

export function apiExportWorkHourStatList(query) {
  return request({
    url: '/work_hour/stat/exportWorkHourStatList',
    method: 'get',
    params: query
  });
}
